package cn.highedu.coolsharkhub.entity;

/**
 * 轮播图实体类
 * 对应数据库表banner
 */
public class Banner {
    private Integer id; // id
    private String url; // 图片路径
    private Integer sort; // 播放顺序
    // 默认构造 有参构造 get和set方法 toString()方法

    public Banner() {
    }

    public Banner(Integer id, String url, Integer sort) {
        this.id = id;
        this.url = url;
        this.sort = sort;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "Banner{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                '}';
    }
}
